package com.wang.common.result;

import lombok.Data;
import lombok.Getter;

/**
 * @Author wang
 * @Date 2024/2/14 17:57
 * @PackageName:com.atguigu.common.result
 * @ClassName: ResultCodeEnum
 * @Description: TODO
 * @Version 1.0
 */
@Getter
public enum ResultCodeEnum {
    SUCCESS(200,"成功"),
    FAIL(201, "失败"),
    PASSWORD_ERROR(202, "密码错误"),
    USER_NOT_EXIST(100, "用户不存在"),
    USERNAME_EXIST(101, "用户名已存在"),
    PHONE_EXIST(102, "手机号已存在"),
    EMAIL_EXIST(103, "邮箱已存在"),
    USERNAME_NO_EXIST(104, "用户名不存在"),
    USERNAME_OR_PASSWORD_ERROR(105, "用户名或密码错误"),
    EMAIL_NO_EXIST(106, "邮箱不存在"),
    PHONEFORMAT(107, "手机号格式错误"),
    PC_IP(117, "客户端IP错误"),
    SERVICE_ERROR(2012, "服务异常"),
    ISEXIST(203, "数据已存在"),
    DATA_ERROR(204, "数据异常"),
    ILLEGAL_REQUEST(205, "非法请求"),
    REPEAT_SUBMIT(206, "重复提交"),
    ARGUMENT_VALID_ERROR(210, "参数校验异常"),

    LOGIN_AUTH(208, "未登陆"),
    PERMISSION(209, "没有权限"),
    SYSUSER_NO(210, "此账号不是管理员"),
    ACCOUNT_ERROR(214, "账号不正确"),
    LOGIN_MOBLE_ERROR( 216, "账号不正确"),
    ACCOUNT_STOP( 217, "账号已停用"),
    NODE_ERROR( 218, "该节点下有子节点，不可以删除"),
    CODE_ERROR( 400, "验证码不正确"),
    NOT_FOUND( 404, "未找到此用户信息"),
    PHONE_OUTHER( 405, "此手机号已绑定其它企业微信"),
    LOCK_USER( 406, "用户被锁定"),
    ACCOUNT_SUSPICIOUS( 407, "用户锁定时间修改失败"),
    ;

    private Integer code;

    private String message;

    private ResultCodeEnum(Integer code, String message) {
        this.code = code;
        this.message = message;
    }
}
